package com.bsoft.gol.hbs.bbpmessagel.template;


import java.io.Serializable;

/**
 * @author tongtp
 * @version v0.1
 * @Package com.bsoft.platform.service.sendMsg.impl.weChat.template
 * @className WxMiniSubscribeData
 * @description 微信小程序订阅消息数据体
 * @create 2020-10-16 13:50
 **/
public class WxMiniSubscribeData implements Serializable {
	private static final long serialVersionUID = 1604304251922328885L;

	private String name;
	private String value;

	public WxMiniSubscribeData() {
	}

	public WxMiniSubscribeData(String name, String value) {
		this.name = name;
		this.value = value;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Override
	public boolean equals(Object o) {
		if (o == this) {
			return true;
		} else if (!(o instanceof WxMiniSubscribeData)) {
			return false;
		} else {
			WxMiniSubscribeData other = (WxMiniSubscribeData) o;
			if (!other.canEqual(this)) {
				return false;
			} else {
				label47:
				{
					Object this$name = this.getName();
					Object other$name = other.getName();
					if (this$name == null) {
						if (other$name == null) {
							break label47;
						}
					} else if (this$name.equals(other$name)) {
						break label47;
					}

					return false;
				}

				Object this$value = this.getValue();
				Object other$value = other.getValue();
				if (this$value == null) {
					if (other$value != null) {
						return false;
					}
				} else if (!this$value.equals(other$value)) {
					return false;
				}

				return true;
			}
		}
	}

	protected boolean canEqual(Object other) {
		return other instanceof WxMiniSubscribeData;
	}

	@Override
	public int hashCode() {
		int result = 1;
		Object $name = this.getName();
		result = result * 59 + ($name == null ? 43 : $name.hashCode());
		Object $value = this.getValue();
		result = result * 59 + ($value == null ? 43 : $value.hashCode());
		return result;
	}

	@Override
	public String toString() {
		return "WxMiniSubscribeData(name=" + this.getName() + ", value=" + this.getValue() + ")";
	}
}
